﻿using Domain.Model.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ValidBox4Mvc.ValidRules;

namespace Domain.Model
{
    /// <summary>
    /// 用户-银行对应关系
    /// </summary>
    public class UserBank:Entity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }
        /// <summary>
        /// 户主姓名
        /// </summary>
        [Length(40)]
        public string UserName { get; set; }
        /// <summary>
        /// 账户
        /// </summary>
       [Length(100)]
        public string Account { get; set; }
        /// <summary>
        /// 开户行地址
        /// </summary>
        [Length(100)]
        public string Address { get; set; }
        /// <summary>
        /// 银行
        /// </summary>
        public Bank Bank { get; set; }
        //public virtual User User{get;set;}
    }
}
